﻿//Copyright@<2009> <Naveen>

using System;

    public class EchoOptionClass
    {

        public static string EchoOption(int mainUserInput)
        {
                System.Console.WriteLine("You entered option: {0}. Please enter 'Y' if it is correct, otherwise enter 'N'", mainUserInput);
                string confirmUserInput = System.Console.ReadLine();
                if (String.Compare(confirmUserInput, "Y") == 0)
                {
                    return confirmUserInput;
                }

                else
                {
                    Console.WriteLine("Invalid Option............");
                    EchoOption(mainUserInput);
                    return null;
                    // throw new myCustomException("RAJESH");
                }
            }
        }
        
    
